using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Impact.Web.Foundation;

namespace Impact.Web.Controls
{
    public partial class SearchSubmit : UserControlBase
    {

        /// <summary>
        /// event handler that is fired when the user clicks "search"
        /// </summary>
        protected void Search_Command(object sender, CommandEventArgs e)
        {
            if (Page.IsValid)
            {
                this.Redirect(string.Format("!search.ashx?terms={0}", Server.UrlEncode(searchTerms.Text)));
            }
        }

    }
}